package com.ubb.dbms.core.parser.visitors;

import net.sf.jsqlparser.schema.Table;
import net.sf.jsqlparser.statement.select.FromItemVisitor;
import net.sf.jsqlparser.statement.select.SubJoin;
import net.sf.jsqlparser.statement.select.SubSelect;

public class SQLFromItemVisitor implements FromItemVisitor {
	
	private String tableName;

	@Override
	public void visit(Table table) {
		tableName = table.getName();
	}

	@Override
	public void visit(SubSelect arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void visit(SubJoin arg0) {
		// TODO Auto-generated method stub

	}
	
	public String getTableName() {
		return tableName;
	}

}
